package hu.bme.aut.consulttime.client;

import hu.bme.aut.consulttime.entitydtos.TeamDTO;
import hu.bme.aut.consulttime.entitydtos.UserDTO;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("team")
public interface TeamService  extends RemoteService {

	public Boolean createTeam(TeamDTO teamDTO);
	
	public List<TeamDTO> retrieveTeams();
	
	public List<TeamDTO> retrieveTeams(long projectId);
	
	public TeamDTO retrieveTeam(long teamId);
	
	public Boolean deleteTeam(long teamId);
	
	public List<String> retrieveSemesters();
	
	public List<UserDTO> retrieveMembers(long teamId);
	
	public List<UserDTO> retrieveAvailableStudents(String semesterId);	
	
	public Boolean updateTeamInfos(TeamDTO teamDTO);
	
	public Boolean updateTeamMembers(TeamDTO teamDTO);
}
